const Layout = () => import("@/layout/index.vue");

export default {
  path: "/taskmg",
  name: "taskmg",
  component: Layout,
  redirect: "/taskmg/alltask",
  meta: {
    icon: "ubuntuFill",
    title: "风险场景检测",
    roles: ["admin"],
    rank: 3,
  },
  children: [
    {
      path: "/taskmg/alltask",
      name: "alltask",
      component: () => import("@/views/taskmg/alltask/index.vue"),
      meta: {
        title: "任务列表",
        showLink: true,
        showParent: true,
      },
    },
    {
      path: "/taskmg/assetinfo",
      query: {
        task: "",
      },
      name: "assetinfo",
      component: () => import("@/views/taskmg/assetinfo/index.vue"),
      // component: () => import("@/views/taskmg/taskdetail/new.vue"),
      meta: {
        title: "资产信息",
        showLink: true,
      },
    },
    {
      path: "/taskmg/plantask",
      name: "plantask",
      component: () => import("@/views/taskmg/plantask/index.vue"),
      meta: {
        title: "计划任务",
        showLink: true,
      },
    },
    {
      path: "/taskmg/vulinfo",
      query: {
        task: "",
      },
      name: "vulinfo",
      component: () => import("@/views/taskmg/vulinfo/index.vue"),
      // component: () => import("@/views/taskmg/taskdetail/new.vue"),
      meta: {
        title: "Java漏洞检测",
        showLink: true,
      },
    },
    {
      path: "/taskmg/suspectedAssets",
      name: "suspectedAssets",
      component: () => import("@/views/taskmg/suspectedAssets/index.vue"),
      meta: {
        title: "疑似自有资产",
        showLink: true,
      },
    },
    {
      path: "/taskmg/suspectedAssets/profile-graph/:asset_id",
      name: "assetProfileGraph",
      component: () =>
        import(
          "@/views/taskmg/suspectedAssets/components/AssetProfileGraph.vue"
        ),
      meta: {
        title: "资产画像图谱",
        showLink: false,
        showParent: true,
      },
    },

    {
      path: "/taskmg/icp-domain",
      name: "icp-domain",
      component: () => import("@/views/taskmg/icp-domain/index.vue"),
      meta: {
        title: "备案域名检测",
        showLink: true,
      },
    },
    {
      path: "/taskmg/noecho-vul",
      name: "noecho-vul",
      component: () => import("@/views/taskmg/noecho-vul/index.vue"),
      meta: {
        title: "无回显型漏洞检测",
        showLink: true,
      },
    },
    {
      path: "/taskmg/update_token",
      name: "UpdateToken",
      component: () => import("@/views/other/updateToken.vue"),
      meta: {
        title: "设备信息管理",
        roles: ["admin"],
        showLink: false,
      },
    },
    {
      path: "/taskmg/github",
      name: "github",
      component: () => import("@/views/github/index.vue"),
      meta: {
        title: "Github模块",
        showLink: true,
      },
    },
    {
      path: "/taskmg/pan",
      name: "pan",
      component: () => import("@/views/taskmg/pan/index.vue"),
      meta: {
        title: "网盘管理",
        showLink: true,
      },
    },
    {
      path: "/taskmg/intelligentQA",
      name: "intelligentQA",
      component: () => import("@/views/intelligentQA/index.vue"),
      meta: {
        title: "知识图谱智能问答",
        showLink: true,
      },
    },

    // {
    //   path: "/taskmg/taskdetail",
    //   name: "taskdetail",
    //   component: () => import("@/views/taskmg/taskdetail/taskdetail.vue"),
    //   // component: () => import("@/views/taskmg/taskdetail/new.vue"),
    //   meta: {
    //     title: "任务详情",
    //     showLink: true,
    //   },
    // },
  ],
} as RouteConfigsTable;
